package org.gbis.openbus.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.gbis.openbus.Route;
import org.gbis.openbus.SearchResult;
import org.gbis.openbus.Station;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import org.gbis.openbus.*;
import org.gbis.openbus.db.*;
import org.gbis.openbus.webbean.*;

public class ApiRouteBusController extends ApiBaseController {

	@Override
	public String getViewJspName() {
		return "/api/jsp/m001_busStation.jsp";
	}

	@Override
	public void createSampleData( SearchResult searchResult ) {
		searchResult.addItem(new RouteBus( ));
		searchResult.addItem(new RouteBus( ));
		searchResult.addItem(new RouteBus( ));
	}

	@Override
	public WebBean createWebBean( HttpServletRequest request ) {
		return WebBeanRouteBusSearch.getNewWebBeanRouteBusSearch(request);
	}

	@Override
	public DbManager getDbManager() {
		return DbManagerRouteBus.getDbManager();
	}
}
